import { reactive } from "vue";
import { Yanim } from "../y-anim/script/yanim";
const SignIn = reactive({
    // day: 1,
    energy: 0,
    show: false,
    close: function () {
        this.show = false;
        Yanim.active(this.energy);
    },
    open: function (energy: number) {
        this.energy = energy;
        this.show = true;
    }
});

function SignInSuc(energy: number) {
    // SignIn.day = day;
    SignIn.energy = energy;
    SignIn.show = true;
}

export { SignIn, SignInSuc };
